from tkinter import*

x = int(input( " Введите координату x: "))
y = int(input( " Введите координату y: "))
m = int(input( " Масштаб изображения: "))

figure = [0, 0,
        10, 0,
        10, 10,
        20, 10,
        20, 30,
        10, 30,
        10, 20,
         0, 20,
          0, 0]

if m == 0 and x >= 0 and x <= 0 and y >= 0 and y <=0:
    pass
else:
    if m > 0 and  0 *m+x>= 0 and 0 *m+y>= 0 and 20*m+x<= 500:
        pass
    else:
        if m < 0 and  20*m + y>= 0 and 0 *m+x<= 500 and 20*m+x<= 500:
            pass
